package cn.wolfcode.cms.mapper;

import cn.wolfcode.cms.domain.Exchange;
import cn.wolfcode.cms.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExchangeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Exchange record);

    Exchange selectByPrimaryKey(Long id);

    List<Exchange> selectAll();

    int updateByPrimaryKey(Exchange record);

    List<Exchange> queryForList(QueryObject qo);

    int queryForCount(QueryObject qo);

    void updataBalance(@Param("mid") Long mid, @Param("balance") Integer balance);
}